package com.oneboot.bbsdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_bbs_user
 */
@TableName(value ="tb_bbs_user")
@Data
public class User implements Serializable {
    /**
     * 用户主键id
     */
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long user_id;

    /**
     * 登陆名称(默认为邮箱号码)
     */
    @TableField(value = "login_name")
    private String login_name;

    /**
     * MD5加密后的密码
     */
    @TableField(value = "password_md5")
    private String password_md5;

    /**
     * 昵称
     */
    @TableField(value = "nick_name")
    private String nick_name;

    /**
     * 头像
     */
    @TableField(value = "head_img_url")
    private String head_img_url;

    /**
     * 性别
     */
    @TableField(value = "gender")
    private String gender;

    /**
     * 居住地
     */
    @TableField(value = "location")
    private String location;

    /**
     * 个人简介
     */
    @TableField(value = "introduce")
    private String introduce;

    /**
     * 用户状态 0=正常 1=禁言
     */
    @TableField(value = "user_status")
    private Integer user_status;

    /**
     * 最新登录时间
     */
    @TableField(value = "last_login_time")
    private Date last_login_time;

    /**
     * 注册时间
     */
    @TableField(value = "create_time")
    private Date create_time;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}